var mongoose = require('mongoose')
var url = 'mongodb://localhost/exertise'
mongoose.connect(url, {useNewUrlParser: true}, function (err) {
  if (err) {
    console.log('数据库连接失败！')
    console.log(err)
  } else {
    console.log('数据库连接成功')
  }
})
